{% if entry.comments.count%}
	<h3 id="comments">&#8220;{{entry.title}}&#8221; 共有<span style='color:red;font-weight:bold;padding:0px 3px'>{{entry.comments.count}}</span>条相关评论   </h3>

	<ol class="commentlist">

	{% for comment in entry.comments %}

		<li class="{%cycle alt1,alt %} id="comment-{{comment.key.id}}">
			<div class="gravatar"><img height="50" width="50" class="avatar avatar-50" src="{{comment.gravatar_url}}" alt=""/></div>
     <div class="comments">
     				{%if comment.weburl %}
			<a href="{{comment.weburl}}" target="_blank">{{comment.author}}</a>
			{% else %}{{comment.author}}{%endif%}
			 On <small class="commentmetadata"><a href="#comment-{{comment.key.id}}" title="">{{comment.date.date}} at {{comment.date|date:"H:i"}}</a> </small>
			
			<br />

			<p>{{comment.content}}</p>

			</div>
			<div style="clear:both"></div>
		

		</li>

	{% endfor %}

	</ol>

{% endif %}

<h3 id="respond">我要留言</h3>
<form action="/post_comment" method="post" id="commentform">

{%if self.is_admin%}
{%else%}
<p><input type="text" name="author" id="author" value="{{user_name}}" size="25" tabindex="1" />
<label for="author">名字(name) <span style='color:red'>*</span></label></p>

<p><input type="text" name="email" id="email" value="{{user_email}}" size="25" tabindex="2" />
<label for="email">邮件(email) <span style='color:red'>*</span></label></p>

<p><input type="text" name="url" id="url" value="{{user_url}}" size="25" tabindex="3" />
<label for="url">博客/网站(web/blog)</label></p>

{% if not self.is_login%}
<p>麻烦，计算一下：<span style="color:#D50000">{{checknum1}}+{{checknum2}}=</span>
<input type="hidden" name="checknum" id="checknum" value="{{checknum1}}+{{checknum2}}"  />

<input type="text" name="checkret" id="checkret" value="" size="5" tabindex="4" />
我不想算，<a href="{{self.loginurl}}">点击这里登录／留言</a></p>
{%endif%}
{%endif%}

<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->

<p><textarea name="comment" id="comment" style="width:96%"  rows="10" tabindex="4"></textarea></p>

<p><input name="submit" type="submit" id="submit" tabindex="5" value="提交留言" />
<input type="hidden" name="key" value="{{entry.key}}" />
</p>







</form>


